1 var pubmedUnsupportedCharMap={x000b2:"2",x000b3:"3",x000b9:"1",x000c0:"A",x000c1:"A",x000c2:"A",x000c3:"A",x000c4:"A",x000c5:"A",x000c6:"AE",x000c7:"C",x000c8:"E",x000c9:"E",x000ca:"E",x000cb:"E",x000cc:"I",x000cd:"I",x000ce:"I",x000cf:"I",x000d1:"N",x000d2:"O",x000d3:"O",x000d4:"O",x000d5:"O",x000d6:"O",x000d7:"x",x000d8:"O",x000d9:"U",x000da:"U",x000db:"U",x000dc:"U",x000dd:"Y",x000df:"ss",x000e0:"a",x000e1:"a",x000e2:"a",x000e3:"a",x000e4:"a",x000e5:"a",x000e6:"ae",x000e7:"c",x000e8:"e",x000e9:"e",x000ea:"e",x000eb:"e",x000ec:"i",x000ed:"i",x000ee:"i",x000ef:"i",x000f1:"n",x000f2:"o",x000f3:"o",x000f4:"o",x000f5:"o",x000f6:"o",x000f8:"o",x000f9:"u",x000fa:"u",x000fb:"u",x000fc:"u",x000fd:"y",x000ff:"y",x00100:"A",x00101:"a",x00102:"A",x00103:"a",x00104:"A",x00105:"a",x00106:"C",x00107:"c",x00108:"C",x00109:"c",x0010a:"C",x0010b:"c",x0010c:"C",x0010d:"c",x0010e:"D",x0010f:"d",x00110:"D",x00111:"d",x00112:"E",x00113:"e",x00116:"E",x00117:"e",x00118:"E",x00119:"e",x0011a:"E",x0011b:"e",x0011c:"G",x0011d:"g",x0011e:"G",x0011f:"g",x00120:"G",x00121:"g",x00122:"G",x00124:"H",x00125:"h",x00126:"H",x00127:"h",x00128:"I",x00129:"ij",x0012a:"I",x0012b:"ij",x0012e:"I",x0012f:"ij",x00130:"I",x00131:"ij",x00132:"IJ",x00133:"ij",x00134:"J",x00135:"j",x00136:"K",x00137:"k",x00138:"k",x00139:"L",x0013a:"l",x0013b:"L",x0013c:"l",x0013d:"L",x0013e:"l",x0013f:"L",x00140:"l",x00141:"L",x00142:"l",x00143:"N",x00144:"n",x00145:"N",x00146:"n",x00147:"N",x00148:"n",x00149:"n",x0014c:"O",x0014d:"o",x00150:"O",x00151:"o",x00152:"OE",x00153:"oe",x00154:"R",x00155:"r",x00156:"R",x00157:"r",x00158:"R",x00159:"r",x0015a:"S",x0015b:"s",x0015c:"S",x0015d:"s",x0015e:"S",x0015f:"s",x00160:"S",x00161:"s",x00162:"T",x00163:"t",x00164:"T",x00165:"t",x00166:"T",x00167:"t",x00168:"U",x00169:"u",x0016a:"U",x0016b:"u",x0016c:"U",x0016d:"u",x0016e:"U",x0016f:"u",x00170:"U",x00171:"u",x00172:"U",x00173:"u",x00174:"W",x00175:"w",x00176:"Y",x00177:"y",x00178:"Y",x00179:"Z",x0017a:"z",x0017b:"Z",x0017c:"z",x0017d:"Z",x0017e:"z",x001f5:"g",x00405:"S",x00406:"I",x00408:"J",x00455:"s",x00456:"i",x00458:"j",x02102:"C",x0210b:"H",x0210c:"H",x02110:"I",x02111:"I",x02112:"L",x02115:"N",x02119:"P",x0211a:"Q",x0211c:"R",x0211d:"R",x0211e:"Rx",x02124:"Z",x0212b:"A",x0212c:"B",x0212f:"e",x02130:"E",x02131:"F",x02133:"M",x02134:"o",x0e05d:"h",x0e05f:"k",x0e3b2:"fj",x0e500:"A",x0e501:"B",x0e503:"D",x0e504:"E",x0e505:"F",x0e506:"G",x0e507:"H",x0e508:"I",x0e509:"J",x0e50a:"K",x0e50b:"L",x0e50c:"M",x0e50e:"O",x0e512:"S",x0e513:"T",x0e514:"U",x0e515:"V",x0e516:"W",x0e517:"X",x0e518:"Y",x0e520:"A",x0e522:"C",x0e523:"D",x0e526:"G",x0e529:"J",x0e52a:"K",x0e52d:"N",x0e52e:"O",x0e52f:"P",x0e530:"Q",x0e531:"R",x0e532:"S",x0e533:"T",x0e534:"U",x0e535:"V",x0e536:"W",x0e537:"X",x0e538:"Y",x0e539:"Z",x0e540:"a",x0e541:"b",x0e542:"c",x0e543:"d",x0e545:"f",x0e546:"g",x0e547:"h",x0e548:"i",x0e549:"j",x0e54a:"k",x0e54b:"l",x0e54c:"m",x0e54d:"n",x0e54f:"p",x0e550:"q",x0e551:"r",x0e552:"s",x0e553:"t",x0e554:"u",x0e555:"v",x0e556:"w",x0e557:"x",x0e558:"y",x0e559:"z",x0e560:"A",x0e561:"B",x0e562:"C",x0e563:"D",x0e564:"E",x0e565:"F",x0e566:"G",x0e569:"J",x0e56a:"K",x0e56b:"L",x0e56c:"M",x0e56d:"N",x0e56e:"O",x0e56f:"P",x0e570:"Q",x0e572:"S",x0e573:"T",x0e574:"U",x0e575:"V",x0e576:"W",x0e577:"X",x0e578:"Y",x0e579:"Z",x0e580:"a",x0e581:"b",x0e582:"c",x0e583:"d",x0e584:"e",x0e585:"f",x0e586:"g",x0e587:"h",x0e588:"i",x0e589:"j",x0e58a:"k",x0e58b:"l",x0e58c:"m",x0e58d:"n",x0e58e:"o",x0e58f:"p",x0e590:"q",x0e591:"r",x0e592:"s",x0e593:"t",x0e594:"u",x0e595:"v",x0e596:"w",x0e597:"x",x0e598:"y",x0e599:"z",x0ea00:"1",x0ea01:"1",x0ea02:"2",x0ea03:"2",x0ea04:"3",x0ea05:"3",x0ea06:"4",x0ea07:"a",x0ea08:"a",x0ea09:"A",x0ea0a:"a",x0ea0b:"A",x0ea0c:"AB",x0ea10:"b",x0ea11:"B",x0ea12:"b",x0ea13:"B",x0ea14:"B",x0ea15:"B",x0ea16:"BC",x0ea19:"c",x0ea1a:"c",x0ea1b:"c",x0ea1c:"C",x0ea1d:"c",x0ea1e:"c",x0ea1f:"c",x0ea20:"c",x0ea21:"c",x0ea25:"d",x0ea26:"D",x0ea27:"d",x0ea28:"D",x0ea29:"d",x0ea2a:"D",x0ea2b:"D",x0ea2f:"dl",x0ea30:"e",x0ea31:"e",x0ea32:"l",x0ea33:"l",x0ea34:"f",x0ea35:"f",x0ea36:"F",x0ea37:"f",x0ea38:"F",x0ea39:"f",x0ea3a:"F",x0ea3d:"g",x0ea3e:"g",x0ea3f:"G",x0ea40:"g",x0ea41:"G",x0ea46:"H",x0ea47:"h",x0ea48:"h",x0ea49:"i",x0ea4a:"I",x0ea4b:"j",x0ea4c:"J",x0ea4d:"J",x0ea4e:"J",x0ea4f:"k",x0ea50:"k",x0ea51:"k",x0ea52:"K",x0ea53:"K",x0ea54:"k",x0ea55:"l",x0ea56:"L",x0ea57:"l",x0ea5b:"lnV",x0ea5c:"m",x0ea5d:"M",x0ea5e:"m",x0ea5f:"m",x0ea63:"n",x0ea64:"n",x0ea65:"N",x0ea66:"n",x0ea67:"N",x0ea68:"n",x0ea69:"n",x0ea6a:"N",x0ea6d:"nv",x0ea6e:"O",x0ea6f:"O",x0ea70:"O",x0ea72:"F",x0ea73:"p",x0ea74:"P",x0ea75:"p",x0ea76:"P",x0ea77:"p",x0ea78:"P",x0ea79:"p",x0ea7a:"P",x0ea8d:"q",x0ea8e:"Q",x0ea8f:"q",x0ea90:"q",x0ea91:"Q",x0ea92:"q",x0ea93:"Q",x0ea94:"q",x0ea95:"q",x0ea96:"q",x0ea97:"Q",x0ea98:"r",x0ea99:"R",x0ea9a:"R",x0ea9b:"r",x0ea9c:"R",x0ea9d:"R",x0ea9e:"r",x0ea9f:"R",x0eaa0:"r",x0eaa1:"ri",x0eaa2:"R",x0eaa3:"r",x0eaa4:"r1",x0eaa5:"RE",x0eaa9:"ri",x0eaaa:"rj",x0eaab:"rN",x0eaac:"s",x0eaad:"S",x0eaae:"S",x0eaaf:"s",x0eab0:"S",x0eab1:"s",x0eab2:"S",x0eab3:"S",x0eab4:"B",x0eab5:"E",x0eab6:"G",x0eab7:"P",x0eab8:"Q",x0eab9:"t",x0eaba:"T",x0eabb:"T",x0eabc:"t",x0eabd:"T",x0eabe:"t",x0eabf:"T",x0eac5:"TT",x0eac6:"u",x0eac7:"u",x0eac8:"U",x0eac9:"u",x0eaca:"u",x0eacc:"V",x0eacd:"v",x0eace:"v",x0eacf:"V",x0ead0:"v",x0ead1:"V",x0ead2:"v",x0ead3:"v",x0ead4:"V",x0ead5:"v",x0eadc:"w",x0eadd:"w",x0eade:"w",x0eadf:"x",x0eae0:"X",x0eae1:"x",x0eae2:"X",x0eae3:"x",x0eae4:"x",x0eae5:"X",x0eae6:"x",x0eae8:"y",x0eae9:"Y",x0eaea:"y",x0eaeb:"Y",x0eaec:"y",x0eaed:"y",x0eaee:"z",x0eaef:"Z",x0eaf0:"z",x0eaf1:"z",x0eaf2:"Z",x0eaf3:"z",x0eaf4:"z",x0eafc:"B",x0eaff:"A",x0eb04:"w",x0eb05:"m",x0eb06:"M",x0eb07:"E",x0eb08:"W",x0eb0a:"h",x0eb0b:"n",x0eb0d:"H",x0eb0f:"M",x0eb10:"m",x0eb11:"Z",x0eb12:"g",x0eb14:"C",x0eb15:"E",x0eb19:"W",x0eb1a:"a",x0eb1b:"b",x0eb1c:"S",x0eb1e:"J",x0eb1f:"b",x0eb20:"Z",x0eb21:"L",x0eb22:"g",x0fb00:"ffi",x0fb01:"fi",x0fb02:"fl",x0fb03:"ffi",x0fb04:"ffl"};function startTargetBook(e,d,c,b,a){return startTarget(e,d,c,b,a)}function startTarget(h,q,p,n,a){if(!window.focus){return false}var l=",width="+p+",height="+n;var b="menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=yes,location=no";var d=b+l;if(a){d=d+","+a}q=String(q).replace(/-/g,"_");var o=75;var c=50;var g=o;var f=c;var r=50;var j=25;var k=["menubar","toolbar","statusbar"];for(var m in k){if(String(d).lastIndexOf(k[m]+"=yes")>String(d).lastIndexOf(k[m]+"=no")){r+=j}}try{if(window.screen.width&&p>0){g=Math.ceil((window.screen.width-p))-15}g=(g>0?g:o);if(window.screen.height&&n>0){f=Math.ceil((window.screen.height-n))-r}f=(f>0?f:c)}catch(s){}var t=",left="+g+",top="+f+",screenX="+g+",screenY="+f;d=d+t;w=window.open(h,q,d);if(w!=undefined){w.focus()}h.target=q;return false}function focuswin(a){a=String(a).replace(/-/g,"_");w=window.open("",a,"menubar=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,directories=yes,resizable=yes");if(w!=undefined){w.focus()}return true}function reverseString(b){var a="";for(i=0;i<=b.length;i++){a=b.charAt(i)+a}return a}function reverseAndReplaceString(c,a,b){return reverseString(c).replace(a,b)}function initUnObscureEmail(a,c){try{if(window.addEventListener){window.addEventListener("load",function(){unObscureEmail(a,c)},false)}else{if(window.attachEvent){window.attachEvent("onload",function(){unObscureEmail(a,c)})}}}catch(b){}}function unObscureEmail(c,g){try{if(typeof(unObscuredEmails)=="undefined"){unObscuredEmails=new Array()}if(!unObscuredEmails[c]){var f=document.getElementsByTagName("span");for(var b=0,a=f.length;b<a;b++){if(f.item(b).className.indexOf(c," ")!=-1){f.item(b).innerHTML=g;unObscuredEmails[c]=true}}}}catch(d){}}function pubMedDbLinkSubmit(b){try{if(b.pubmedOption){b=b.pubmedOption}if(b.options){location.href=b.options[b.options.selectedIndex].value}}catch(a){}return false}function initRedirectClicks(a){if(a&&typeof jQuery!=="undefined"){jQuery(document).click(function(g){if(!g){return true}if(g.shiftKey||g.altKey||g.ctrlKey){return true}var f=jQuery(g.target).closest("a[ref], area[ref]");if(!f||f.length==0){return true}var d=f.attr("ref");var c=f.attr("href");if(typeof(c)!="undefined"&&c.indexOf("sites/entrez")&&c.indexOf("%5Bauth%5D")){var b=replacePubMedUnsupportedChars(c);if(b!=c){f.attr("href",b)}}if(typeof(d)!="undefined"&&d.indexOf("redirect-to-url")==-1){d=d+"&redirect-to-url="+encodeURIComponent(c)}jQuery.ajax({type:"HEAD",url:a+"?"+d,timeout:1000,async:true});return true})}}function replacePubMedUnsupportedChars(a){a=a.replace(/%26%23(x000[0-7][0-9a-f])%3b/ig,function(c,b){return(String.fromCharCode("0"+b))});a=a.replace(/%26%23(x[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])%3b/ig,function(c,b){return(pubmedUnsupportedCharMap[b]?pubmedUnsupportedCharMap[b]:"")});return a}var pmc_script={addEvent:function(c,e,d){if(!d.$$guid){d.$$guid=this.addEvent_guid++}if(!c.events){c.events={}}var b=c.events[e];if(!b){b=c.events[e]={};if(c["on"+e]){b[0]=c["on"+e]}}b[d.$$guid]=d;c["on"+e]=a;function a(k){var j=true;k=k||f(window.event);var g=this.events[k.type];for(var h in g){this.$$handleEvent=g[h];if(this.$$handleEvent(k)===false){j=false}}return j}function f(g){g.preventDefault=f.preventDefault;g.stopPropagation=f.stopPropagation;return g}f.preventDefault=function(){this.returnValue=false};f.stopPropagation=function(){this.cancelBubble=true}},addEvent_guid:1,removeEvent:function(a,c,b){if(a.events&&a.events[c]){delete a.events[c][b.$$guid]}}};if(typeof jQuery!=="undefined"){pmc_script.addEvent=function(){}}if(typeof jQuery!=="undefined"&&typeof jQuery.fn!=="undefined"&&typeof jQuery.fn.hoverIntent!=="undefined"){(function(c){var b="mouseenter";var E="mouseleave";var h="evtTS.sensor";var p="mouse.in.sensor";var B="mouse.out.sensor";var K="mouse.in.canvas";var z="mouse.out.canvas";var d="show.canvas";var t="hide.canvas";var a="shown.canvas";var D="gone.canvas";var o="left";var M="right";var x="top";var v="bottom";var n=15;var j=500;var A="hover";var I=400;var H=200;var F=250;var q=150;c.fn.popupSensor=function(Q){var R={statIfLonger:j,delayIn:H,delayOut:F};var P=c.fn.extend({},R);c.fn.extend(P,Q);return this.each(function(S){var T=c(this);T.bind(p,r);T.bind(B,k);T.bind(K,L);T.bind(z,y);T.bind(D,m);T.bind(a,O);T.data("popupSensor.cfg",c.extend({},P))})};function r(R){var S=c(this);S.data("__sensor.mouseIn",true);S.bind(b,g);var P=C(S);if(typeof S.data(h)==="undefined"||S.data(h)===null){S.data(h,R.timeStamp);var Q=N(S);if(typeof Q!=="undefined"){Q.getCanvasElm().trigger(d)}}}function k(P){var Q=c(this);Q.data("__sensor.mouseIn",false);s.apply(this,[P])}function g(P){var Q=c(this);Q.data("__sensor.instantMouseIn",true);Q.bind(E,u)}function u(R){var S=c(this);var P=C(S);var Q=this;S.unbind(E,u);S.data("__sensor.instantMouseIn",false);setTimeout(function(){s.apply(Q,[R])},P.delayOut)}function L(P){var Q=c(this);Q.data("__canvas.mouseIn",true)}function y(P){var Q=c(this);Q.data("__canvas.mouseIn",false);s.apply(this,[P])}function s(Q){var R=c(this);var P=N(R);if(typeof P!=="undefined"&&R.data("__canvas.mouseIn")!==true&&R.data("__sensor.mouseIn")!==true&&R.data("__sensor.instantMouseIn")!==true&&R.data("__canvas.shown")===true){P.getCanvasElm().trigger(t)}}function O(P){var Q=c(this);Q.data("__canvas.shown",true)}function m(T){var U=c(this);var P=C(U);U.data("__canvas.shown",false);U.unbind(b,g);if(typeof ncbi!=="undefined"&&typeof ncbi.sg!=="undefined"&&typeof ncbi.sg.ping!=="undefined"&&typeof U.data(h)!=="undefined"){var R=T.timeStamp-U.data(h);var Q="lifespan="+R;var S=[];S.push("jsevent="+A);S.push(Q);if(typeof U.attr("ref")!=="undefined"){S.push(U.attr("ref"))}if(P.statIfLonger<R){ncbi.sg._version>=10?ncbi.sg.ping(this,T,A,[Q]):ncbi.sg.ping(S)}}if(typeof U.data(h)!=="undefined"){U.data(h,null)}}function C(P){return P.data("popupSensor.cfg")}function N(R){var Q=R.data("popupSensor.popupCanvas");var P=C(R);if(typeof Q==="undefined"){Q=new J({el:R,delayOut:Math.max(P.delayOut,P.delayIn),delayIn:P.delayIn});if(typeof Q!=="undefined"){R.attr("canvas-rid",Q.getCanvasElm().attr("id"));f(R,Q)}}return Q}function f(Q,P){Q.data("popupSensor.popupCanvas",P)}function l(P){}function G(P){}function e(){console.info.apply(this,arguments)}var J=function(P){this.__name="popupCanvas";this.__cfgDefaults={delayIn:H,delayOut:F};this.__cfg={};this.__canvas=undefined;this.__imToLoad=0;this.__imagesBox=undefined;this.__legendBox=undefined;return(this.__init(P)===true?this:undefined)};c.fn.extend(J.prototype,{__init:function(R){c.fn.extend(this.__cfg,this.__cfgDefaults);c.fn.extend(this.__cfg,R);var Q=this.__newCanvas();if(Q){var P=this;this.bind(b,function(S){P.__in(S)});this.bind(E,function(S){P.__out(S)});this.bind(d,function(S){P.show(S)});this.bind(t,function(S){P.hide(S)})}return Q},__in:function(Q){var P=this.__cfg;var R=P.el;R.trigger(K)},__out:function(Q){var P=this.__cfg;var R=P.el;setTimeout(function(){R.trigger(z)},P.delayOut)},__newCanvas:function(){var P=this.__cfg;var Q=P.el;var S=undefined;this.__canvas=c('<div class="co co-default"><div class="co-inner"></div></div>');if(typeof Q!=="undefined"){if(typeof Q.attr("rid-figpopup")!=="undefined"){S=this.__collectHiresImgs(c(c("#"+Q.attr("rid-figpopup"))[0]))}else{if(typeof Q.attr("co-rid")!=="undefined"){c("#"+Q.attr("co-rid")).clone().removeAttr("id").show().appendTo(this.__getCanvasInner());S=Q.attr("co-rid")}else{if(typeof Q.attr("co-content")!=="undefined"){S=""+Math.floor(Math.random()*1000000);this.addContent(Q.attr("co-content"))}else{S=this.__collectHiresImgs(Q)}}}}if(typeof S!=="undefined"){var R=this.getCanvasElm();if(typeof Q.attr("co-legend")=="string"){this.addLegend(Q.attr("co-legend"))}if(typeof Q.attr("co-legend-rid")=="string"){this.addLegendRid(Q.attr("co-legend-rid"))}if(typeof Q.attr("co-class")=="string"){this.addClass(Q.attr("co-class"))}if(typeof Q.attr("co-style")=="string"){this.addStyle(Q.attr("co-style"))}R.appendTo(c(document.body));R.attr("id",String("_cid_"+S).replace(/\W+/g,"_"));Q.attr("canvas-rid",R.attr("id"));if(typeof ncbi!=="undefined"&&typeof ncbi.sg!=="undefined"&&typeof ncbi.sg.ping!=="undefined"){ncbi.sg.scanLinks(R.find("a").get())}}return typeof S!=="undefined"?true:false},__collectHiresImgs:function(Q){var R=undefined;var P=this;if(typeof Q!=="undefined"){Q.find("img[src-large], img[hires]").each(function(){var S=c(this);if(typeof S.attr("src-large")==="undefined"){S.attr("src-large",S.attr("hires"))}if(typeof R==="undefined"){R=""}R+="_"+S.attr("src-large")+"_";P.addImage(S)})}return R},bind:function(Q,P){this.__canvas.bind(Q,P)},show:function(Q){var P=this.__cfg;var R=P.el;this.__canvas.show();this.__canvasArrangeLocation();R.trigger(a)},hide:function(Q){var P=this.__cfg;var R=this.__cfg.el;this.__canvas.hide();R.trigger(D)},addImage:function(S){var R=this.__cfg;var W=R.el;if(typeof S.attr("src-large")!=="undefined"){this.__imToLoad+=1;if(this.__imToLoad===1){this.__imagesBox=c('<div class="images-box inline-block"></div>');this.__imagesBox.appendTo(this.__getCanvasInner())}var Q;var V=W.closest("a");var U=S.attr("alt");if(U===undefined){U=""}var P=c('<img class="large-thumb" alt="'+U+'" src="'+S.attr("src-large")+'" />');if(typeof V!=="undefined"){Q=c("<a></a>")}if(typeof Q!=="undefined"){c.each(["href","ref","target"],function(X,Y){if(V.attr(Y)!==""){Q.attr(Y,V.attr(Y))}});Q.bind("click",{},function(X){X.stopPropagation();V.trigger(X);return X.result===false?false:true});P.appendTo(Q.appendTo(c('<div class="inline-block"></div>').appendTo(this.__imagesBox)))}else{P.appendTo(c('<div class="inline-block"></div>').appendTo(this.__imagesBox))}var T=this;if(P.data("loaded")!==true){P.parent().addClass("in-progress");P.load(function(){var X=c(this);X.data("loaded",true);X.show();X.parent().removeClass("in-progress");T.__imToLoad-=1;T.__canvasArrangeLocation()})}}},addLegend:function(P){this.__legendBox=c('<div class="legend">'+decodeURIComponent(P)+"</div>").css({"text-align":"left"});this.__legendBox.appendTo(this.__getCanvasInner().css({"text-align":"center"}))},addLegendRid:function(P){var Q=c("#"+P).clone().removeAttr("id").show();if(typeof Q!=="undefined"){this.__legendBox=c('<div class="legend"></div>').css({"text-align":"left"});Q.appendTo(this.__legendBox);this.__legendBox.appendTo(this.__getCanvasInner().css({"text-align":"center"}))}},addContent:function(P){c('<div class="content">'+decodeURIComponent(P)+"</div>").appendTo(this.__getCanvasInner())},addClass:function(P){this.__getCanvasInner().addClass(P)},removeClass:function(P){this.__getCanvasInner().removeClass(P)},addStyle:function(P){this.__getCanvasInner().attr("style",this.__getCanvasInner().attr("style")+";"+P)},__getCanvasInner:function(){return this.__canvas.children(".co-inner").size()>0?this.__canvas.children(".co-inner"):this.__canvas},getCanvasElm:function(){var P=this.__cfg;return this.__canvas},__canvasReCalcLocation:function(V){var U=this.__canvas;var T=this.__imagesBox;var P=this.__legendBox;var R={win:undefined,elm:undefined,cnvs:undefined,ibox:undefined,lbox:undefined};R.win={size:{w:c(window).width(),h:c(window).height()},ltc:{left:c(window).scrollLeft(),top:c(window).scrollTop()}};R.elm={size:{w:V.outerWidth(true),h:V.outerHeight(true)},ltc:V.offset()};R.cnvs={size:{w:U.outerWidth(true),h:U.outerHeight(true)}};if(typeof T!=="undefined"){R.ibox={size:{w:T.outerWidth(true),h:T.outerHeight(true)}}}if(typeof P!=="undefined"){R.lbox={size:{w:P.outerWidth(true),h:P.outerHeight(true)}}}var S=[{n:x,v:(R.elm.ltc.top-R.win.ltc.top)},{n:v,v:((R.win.ltc.top+R.win.size.h)-(R.elm.ltc.top+R.elm.size.h))}];var Q=[{n:o,v:(R.elm.ltc.left-R.win.ltc.left)},{n:M,v:((R.win.ltc.left+R.win.size.w)-(R.elm.ltc.left+R.elm.size.w))},];R.spH=Q.sort(function(X,W){return W.v-X.v})[0];R.spV=S.sort(function(X,W){return W.v-X.v})[0];if(R.cnvs.size.w/R.cnvs.size.h<1||R.win.size.w/R.win.size.h>R.cnvs.size.w/R.cnvs.size.h||(R.spH.v>R.cnvs.size.w)){R.spName=R.spH.n}else{R.spName=R.spV.n}switch(R.spName){case o:R.cnvs.ltc={top:R.elm.ltc.top+R.elm.size.h/2-R.cnvs.size.h/2,left:R.elm.ltc.left-R.cnvs.size.w};break;case M:R.cnvs.ltc={top:R.elm.ltc.top+R.elm.size.h/2-R.cnvs.size.h/2,left:R.elm.ltc.left+R.elm.size.w};break;case x:R.cnvs.ltc={top:R.elm.ltc.top-R.cnvs.size.h,left:R.elm.ltc.left+R.elm.size.w/2-R.cnvs.size.w/2};break;case v:R.cnvs.ltc={top:R.elm.ltc.top+R.elm.size.h,left:R.elm.ltc.left+R.elm.size.w/2-R.cnvs.size.w/2};break;default:R.cnvs.ltc=R.elm.ltc}if((R.cnvs.ltc.top+R.cnvs.size.h)>(R.win.ltc.top+R.win.size.h)){R.cnvs.ltc.top-=(R.cnvs.ltc.top+R.cnvs.size.h)-(R.win.ltc.top+R.win.size.h)}if((R.cnvs.ltc.left+R.cnvs.size.w)>(R.win.ltc.left+R.win.size.w)){R.cnvs.ltc.left-=(R.cnvs.ltc.left+R.cnvs.size.w)-(R.win.ltc.left+R.win.size.w)}if(R.cnvs.ltc.top<R.win.ltc.top){R.cnvs.ltc.top=R.win.ltc.top}if(R.cnvs.ltc.left<R.win.ltc.left){R.cnvs.ltc.left=R.win.ltc.left}return R},__canvasArrangeLocation:function(P){var ag=typeof P==="number"?P:0;var T=this.__cfg;var V=this.__canvas;var Z=this;var U=T.el;var W=this.__legendBox;var Q=this.__imagesBox;var Y=V.find("img");Y.each(function(){var ah=c(this);if(ah.data("loaded")===true){ah.height("auto")}});if(typeof W!=="undefined"){W.width("auto")}var ab=this.__canvasReCalcLocation(U);if(typeof ab.ibox!=="undefined"&&typeof ab.lbox!=="undefined"&&ab.lbox.size.w>=ab.ibox.size.w){W.css({width:Math.max(ab.ibox.size.w,I)});ab=this.__canvasReCalcLocation(U)}V.css({top:ab.cnvs.ltc.top+"px",left:ab.cnvs.ltc.left+"px"});if(this.__imToLoad===0&&ag<n){var af={w:ab.cnvs.size.w/(ab.win.size.w*0.95),h:ab.cnvs.size.h/(ab.win.size.h*0.975)};var aa=Math.max(af.w,af.h);if(Math.max(af.w,af.h)>1){var ad=0;Y.each(function(){var ah=c(this);if(ah.data("loaded")===true){var ai=0;if(ah.width()/aa>q){ai=ah.width()/aa}else{if(ah.width()>q){ai=q}}if(ai>0){ad+=ah.width()-ai;ah.width(ai)}}});if(ad>1){Z.__canvasArrangeLocation(ag+1);return}}var af={w:(ab.win.size.w*0.95)/ab.cnvs.size.w,h:(ab.win.size.h*0.975)/ab.cnvs.size.h};if(Math.min(af.w,af.h)>1){var ae=0;Y.each(function(aj){var ak=c(this);var al=ak.width();var ai=ak.height();ak.width("auto");if(ak.data("loaded")===true&&al<ak.width()){var ah=(1+(Math.min(af.w,af.h)-1)*0.5);ak.width(al*ah>ak.width()?"auto":al*ah);ae+=ak.width()-al}else{ak.width(al)}});if(ae>1){Z.__canvasArrangeLocation(ag+1)}}}else{if(ag<n){var S=false;var X=Y.size();var ac=ab.cnvs.size.w-V.innerWidth()+parseFloat(V.css("padding-left"))+parseFloat(V.css("padding-right"));var R=ab.cnvs.size.h-V.innerHeight()+parseFloat(V.css("padding-top"))+parseFloat(V.css("padding-bottom"));Y.each(function(){var ah=c(this);if(ah.data("loaded")===true){if(ah.width()>(ab.win.size.w-ac)/X&&ah.width()>q){ah.width((ab.win.size.w-ac)/X);S=true}if(ah.height()>(ab.win.size.h-R)/X&&ah.width()>q){ah.width(ah.width()/(ah.height()/((ab.win.size.h-R)/X)));S=true}if(S&&ah.width()<q){ah.width(q)}}if(S){Z.__canvasReCalcLocation(U)}})}}}});c.fn.figPopup=function(Q){var P={};c.extend(P,{interval:200,delayIn:200,delayOut:200,timeout:200,over:function(R){c(this).trigger(p)},out:function(R){c(this).trigger(B)}});c.extend(P,Q);return P}})(jQuery);jQuery(document).ready(function(){var a=new jQuery.fn.figPopup();jQuery("a.figpopup").hoverIntent(a).popupSensor({statIfLonger:500,delayIn:a.delayIn,delayOut:a.delayOut})})}function togglePanel(c){if(typeof jQuery!=="undefined"){var b=jQuery(c);var a=jQuery("#"+b.attr("rid").split(" ").join(",#"));a.fadeToggle(200).toggleClass("hide");b.toggleClass("toggled");if(b.hasClass("toggled")){b.find("span").replaceWith("<span>▼</span>")}else{b.find("span").replaceWith("<span>►</span>")}}return false}function cpToggle(b){if(typeof jQuery!=="undefined"){jQuery(b).parent().next().fadeToggle(200);var a=jQuery(b).parent().parent();if(a.hasClass("inline-block")){a.removeClass("inline-block")}else{a.addClass("inline-block")}}return false}var xpmc_fp={onLoadHandler:function(){var c=document.forms.journalsearch;if(c.elements["title-switch"]!==undefined){if(c.elements["title-switch"].length!==undefined){var a=(pmc_fp.init_state.title_switch==="hide")?0:1;c.elements["title-switch"][a].checked=true}else{c.elements["title-switch"].value=pmc_fp.init_state.title_switch}}if(c.elements["search-option"]!==undefined){if(c.elements["search-option"].length!==undefined){var b=(pmc_fp.init_state.search_option==="journals")?0:1;c.elements["search-option"][b].checked=true}else{c.elements["search-option"].value=pmc_fp.init_state.search_option}if(pmc_fp.has_autocomplete==="yes"){var d=jQuery("#jterm");c.elements["search-option"][0].onclick=function(){d.ncbiautocomplete("option","isEnabled",true)};c.elements["search-option"][1].onclick=function(){d.ncbiautocomplete("option","isEnabled",false)};d.keyup(function(e){if(e.keyCode===13){return doSearch()}})}}c.elements.tabindex.value=pmc_fp.init_state.tabindex}};if(typeof jQuery!=="undefined"){jQuery(document).ready(function(){if(typeof pmc_fp!=="undefined"&&typeof xpmc_fp!=="undefined"){xpmc_fp.onLoadHandler()}})}jQuery(document).ready(function(){if(jQuery(".epub-link").length==0){return}var b='<div title="Making articles easier to read in PMC" id="epubDialog" style="display: none"> <p>We are experimenting with display styles that make it easier to read articles in PMC. Our first effort uses eBook readers, which have several "ease of reading" features already built in.</p> <p>These PMC articles are best viewed in the <em>iBooks reader</em>. You may notice problems with the display of certain parts of an article in other eReaders.</p> <button id="cancelEpub">Cancel</button> <button id="downloadEpub" style="float: left">Download article</button> </div>';var c=jQuery(b).ncbidialog({autoOpen:false,modal:true,width:"500px"});var a=jQuery(".epub-link a");a.on("click",function(d){d.preventDefault();c.ncbidialog("open");c.height(c.height()+5)});jQuery("#cancelEpub").click(function(){c.ncbidialog("close")});jQuery("#downloadEpub").click(function(){c.ncbidialog("close");window.location.href=a.prop("href")})});jQuery(document).ready(function(){jQuery("#internal_links_switch").bind("click",function(c){var b=jQuery(this);var a;if(a=b.text().match(/ (on|off) /)){jQuery.cookie("PMC_SeeExternalArticlesInternally",a[1])}return true})});jQuery(document).on("click","a[target],area[target]",function(){var a=jQuery,b=a(this);return startTarget(b.attr("href"),b.attr("target"),1024,800)});jQuery(document).on("click","a.pmctoggle",function(){return togglePanel(this)});